#!/usr/bin/bash

file="/Users/jean/Code/shell/hello"

if [ -r $file ]
then
	echo "read avaiable"
else
	echo "read inavaialbe"
fi

if [ -w $file ]
then
	echo "write avaiable"
else
	ecoo "write inavaiable"
fi

if [ -x $file ]
then 
	echo "execute avaiable"
else
	echo "execute inavaiable"
fi

if [ -f $file ]
then 
	echo "normal file"
else
	echo "special file"
fi

if [ -d $file ]
then 
	echo "is floder"
else
	echo "is not floder"
fi

if [ -s $file ]
then
	echo "file is not null"
else
	echo "file is null"
fi

if [ -e $file ]
then
	echo "file exists"
else
	echo "file not exists"
fi

